import Vue from 'vue'
import App from './App.vue'
import VueRouter from "vue-router";
import router from "@/router";
import TypeNav from "@/components/TypeNav/TypeNav.vue";
import Pagination from "@/components/Pagination/Pagination.vue";
import store from "@/store";
import '@/mock/mockServe'
import {Carousel, CarouselItem} from 'element-ui';
// 把三级联动注册全局组件用以复用
Vue.component(TypeNav.name, TypeNav)  //第一个参数是组件的名字，二个参数是指哪个组件
Vue.component(Pagination.name,Pagination)

Vue.use(VueRouter)
Vue.component(Carousel.name, Carousel)
Vue.component(CarouselItem.name, CarouselItem)
Vue.config.productionTip = false
new Vue({
    beforeCreate() {
        Vue.prototype.$bus = this   //创建全局事件总线
    },
    render: h => h(App),
    router,
    store
}).$mount('#app')
